package com.sgcc.statistics.service;

import java.util.List;

import com.sgcc.statistics.domain.IndicatorExecutionDto;
import com.sgcc.statistics.domain.OSgappStat;

/**
 * 网上国网日报Service接口
 * 
 * @author sgcc
 * @date 2021-04-14
 */
public interface IOSgappStatService 
{
    /**
     * 查询网上国网日报
     * 
     * @param id 网上国网日报ID
     * @return 网上国网日报
     */
    public OSgappStat selectOSgappStatById(String id);

    /**
     * 查询网上国网日报列表
     * 
     * @param oSgappStat 网上国网日报
     * @return 网上国网日报集合
     */
    public List<OSgappStat> selectOSgappStatList(OSgappStat oSgappStat);

    /**
     * 新增网上国网日报
     * 
     * @param oSgappStat 网上国网日报
     * @return 结果
     */
    public int insertOSgappStat(OSgappStat oSgappStat);

    /**
     * 修改网上国网日报
     * 
     * @param oSgappStat 网上国网日报
     * @return 结果
     */
    public int updateOSgappStat(OSgappStat oSgappStat);

    /**
     * 批量删除网上国网日报
     * 
     * @param ids 需要删除的网上国网日报ID
     * @return 结果
     */
    public int deleteOSgappStatByIds(String[] ids);

    /**
     * 删除网上国网日报信息
     * 
     * @param id 网上国网日报ID
     * @return 结果
     */
    public int deleteOSgappStatById(String id);

    OSgappStat getOsgappStatByUnit(String orgNo,String endStartTime, String endTime);

    IndicatorExecutionDto implementationIndicators(List<String> orgNoList, String starttime,String endtime);

    OSgappStat getOsgappStatByUnitList(List<String> orgNoList, String lastYearstrTime, String lastYearendTime);

    OSgappStat countNewNumByUnit(String unit, String strTime, String eTime);

    OSgappStat getOsgappStatAndOpowerRateByUnit(String deptId, String sTime, String eTime);
}
